package Thread;

public class test2 {

    static class MyRun implements Runnable{
        @Override
        public void run() {
            System.out.println("hello thread");
        }
    }

    public static void main(String[] args) {
     Runnable runnable=new MyRun();
     Thread t1=new Thread(runnable);
     t1.start();

        System.out.println("hello main");
    }
}
